#include <reg52.h>
unsigned int timeCount = 0;
sbit led7 = P2^7;
void it_init(){
	
TMOD = 0x21;
TH0 = 0xfc; 
TL0 = 0x18; 
ET0 = 1;
TR0 = 1;

TH1 = 0xf3; 
TL1 = 0xf3;
TR1 = 1;
SM0 = 0; 
SM1 = 1;
REN = 1; 
ES = 1; 
EA = 1;
	
	

}


void aaa() interrupt 1
{
	TH0=0XFC;	
	TL0=0X18;
	timeCount++;
	if(timeCount == 6000){
		timeCount = 0;
	}
		if(timeCount  % 1000 == 0){
				led7 = ~led7;
		} 
	
}

void bbb() interrupt 4 {
		unsigned char dat = SBUF; 
    while(!RI);
    RI = 0;
}

